. as $cve_data |
  ($severity[0].items | map({(.string): .display_name}) | add) as $severity_names |
  ($platforms[0].items | map({(.string): .display_name}) | add) as $platform_names |
  
  (["| CVE ID | Enhanced Severity | Enhanced Platforms | Problem |",
    "| ------ | ---------------- | ------------------ | ------- |"] +
   [$cve_data.cves[] | 
    "| \(.id) | \($severity_names[.severity] // .severity) | \((.platforms | map($platform_names[.] // .)) | join(", ")) | \(.problem) |"]) |
  .[]
